SureCart\Models\Product C

Total Complexity 119
Dependencies 18
Dependents 28
Total lines 925
Lines of code 422
Logical lines of code 198
Comment lines 383
Methods 58
Properties 5

Methods 58

Method Rating Maintainability Complexity Lines of code
getSyncedAttribute()
S
56 7 18
getGalleryAttribute()
S
49 5 34
getRangeDisplayAmountAttribute()
S
59 5 16
sync()
S
59 4 14
getFeaturedImageAttribute()
S
60 4 13
getDisplayAmountAttribute()
S
60 4 13
getHasSyncableExpandsAttribute()
S
63 4 11
getActivePricesAttribute()
S
56 3 20
getTemplateIdAttribute()
S
65 4 9
getInStockVariantsAttribute()
S
63 3 11
getInitialAmountAttribute()
S
63 3 11
getImageUrl()
S
70 3 6
getInStockAttribute()
S
67 3 9
withActivePrices()
S
60 2 15
getGalleryIdsAttribute()
S
61 2 15
withSortedPrices()
S
62 2 13
getInitialPageState()
S
55 1 18
create()
S
67 2 8
update()
S
67 2 8
deleteSynced()
S
69 2 7
maybeQueueSync()
S
72 2 6
delete()
S
67 2 8
getImageSrcsetAttribute()
S
71 2 6
getPermalinkAttribute()
S
78 2 3
getIsPublishedAttribute()
S
78 2 3
getTrialTextAttribute()
S
79 2 3
getBillingIntervalTextAttribute()
S
79 2 3
getSetupFeeTextAttribute()
S
79 2 3
getHasUnlimitedStockAttribute()
S
72 2 6
getInitialVariantAttribute()
S
68 2 7
getScratchDisplayAmountAttribute()
S
71 2 6
getTemplatePartIdAttribute()
S
72 2 6
setGalleryIdsAttribute()
S
74 2 4
getLineItemImageAttribute()
S
77 2 3
getPreviewImageAttribute()
S
77 2 3
getCatalogedAtDateTimeAttribute()
S
78 2 3
queueSync()
S
71 1 7
getPostAttribute()
S
79 1 3
getSyncExpands()
S
82 1 3
setUpdatedAtAttribute()
S
74 1 4
setPricesAttribute()
S
79 1 3
setProductCollectionsAttribute()
S
79 1 3
setVariantsAttribute()
S
79 1 3
setVariantOptionsAttribute()
S
79 1 3
setFeaturedProductMediaAttribute()
S
79 1 3
setProductMediasAttribute()
S
79 1 3
buyLink()
S
80 1 3
getCheckoutPermalinkAttribute()
S
81 1 3
getPageTitleAttribute()
S
80 1 3
getMetaDescriptionAttribute()
S
80 1 3
getHasMultiplePricesAttribute()
S
80 1 3
activeAdHocPrices()
S
69 1 8
getFeaturedMediaAttribute()
S
82 1 3
getFirstVariantWithStockAttribute()
S
79 1 3
getInitialPriceAttribute()
S
72 1 5
getScratchAmountAttribute()
S
72 1 5
getTemplateAttribute()
S
82 1 3
getIsOnSaleAttribute()
S
80 1 3